package com.itheima.exerciseTest.method01_09.method2;

public abstract class Staff {
    private String name; // 姓名
    private String id; // 工号
    private double salary; // 工资

    public Staff() { }

    public Staff(String name, String id, double salary) {
        this.name = name;
        this.id = id;
        this.salary = salary;
    }

    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getId() { return id; }
    public void setId(String id) { this.id = id; }
    public double getSalary() { return salary; }
    public void setSalary(double salary) { this.salary = salary; }

    public abstract void work();
}
